/*jshint esversion: 9 */
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

import '@/common/RequestAnimationFrameExpand';  //引入requestAnimationFrame兼容性扩展
import ElementUI from 'element-ui';  //引入elementUI
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import '@/style/PublicStyle.scss';  //引入公共的CSS
import '@/style/CssVar.scss';  //引入公共的CSS
import '@/style/ElementUi.scss';  //引入公共的CSS
import '@/common/Rem';  //引入rem计算方法
import '@/common/CssVar';  //引入rem计算方法
import {Api,Const} from "@/common/http";  //引入所有Api
Vue.prototype.$Api = Api;
Vue.prototype.$Const = Const;
//引入markdown编辑器
import mavonEditor from 'mavon-editor';
import 'mavon-editor/dist/css/index.css';
Vue.use(mavonEditor);
//引入颜色处理库
import Color from "color";
console.log(Color);
window.Color = Color;

Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app');

//text
// import {create} from "./plugs/storages";
// window.test = create;
// console.log(create);
// import {create,allModel} from "@/plugs/storages-js";
// let a = create(undefined,'test',{
//     modelName:'local',
//     realTime:true,
// });
// window.create = a;
// console.log(allModel);
